package com.etime.shycourse.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author wb
 * @since 2022-03-02
 */
@ApiModel(value = "Coursecomment对象", description = "")
@TableName("coursecomment")
public class Coursecomment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "commentid", type = IdType.AUTO)
    private Integer commentid;

    private Integer courseid;

    private String commentcontent;

    @ApiModelProperty(value = "1-10分  --此字段暂时不使用")
    private Integer commentscore;

    private Integer commentuser;

    private String commentusertruename;

    private Date commenttime;

    private String userimgurl;

    @ApiModelProperty(value = "1--正常   0--不发布    ---后台管理员进行管理	   ")
    private Integer commentstate;

    @ApiModelProperty(value = "用户设置：1--展示；2--不展示")
    private Integer commentisshow;

    @ApiModelProperty(value = "0-不加精 1--加精 --后台设置")
    private Integer commentdigest;

    @ApiModelProperty(value = "0--不置顶	   1--置顶（后台设置）")
    private Integer commenttop;

    @ApiModelProperty(value = "父评论id，课程评论=-1	评论的回复，父id=课程评论的id")
    private Integer commentpid;

    @ApiModelProperty(value = "1--评论 2--提问")
    private Integer commenttype;

    @ApiModelProperty(value = "问题老师的回复；0--未回复 1--已回复")
    private Integer commentre;

    public String getUserimgurl() {
        return userimgurl;
    }

    public void setUserimgurl(String userimgurl) {
        this.userimgurl = userimgurl;
    }

    public Integer getCommentid() {
        return commentid;
    }

    public void setCommentid(Integer commentid) {
        this.commentid = commentid;
    }

    public Integer getCourseid() {
        return courseid;
    }

    public void setCourseid(Integer courseid) {
        this.courseid = courseid;
    }

    public String getCommentcontent() {
        return commentcontent;
    }

    public void setCommentcontent(String commentcontent) {
        this.commentcontent = commentcontent;
    }

    public Integer getCommentscore() {
        return commentscore;
    }

    public void setCommentscore(Integer commentscore) {
        this.commentscore = commentscore;
    }

    public Integer getCommentuser() {
        return commentuser;
    }

    public void setCommentuser(Integer commentuser) {
        this.commentuser = commentuser;
    }

    public String getCommentusertruename() {
        return commentusertruename;
    }

    public void setCommentusertruename(String commentusertruename) {
        this.commentusertruename = commentusertruename;
    }

    public Date getCommenttime() {
        return commenttime;
    }

    public void setCommenttime(Date commenttime) {
        this.commenttime = commenttime;
    }

    public Integer getCommentstate() {
        return commentstate;
    }

    public void setCommentstate(Integer commentstate) {
        this.commentstate = commentstate;
    }

    public Integer getCommentisshow() {
        return commentisshow;
    }

    public void setCommentisshow(Integer commentisshow) {
        this.commentisshow = commentisshow;
    }

    public Integer getCommentdigest() {
        return commentdigest;
    }

    public void setCommentdigest(Integer commentdigest) {
        this.commentdigest = commentdigest;
    }

    public Integer getCommenttop() {
        return commenttop;
    }

    public void setCommenttop(Integer commenttop) {
        this.commenttop = commenttop;
    }

    public Integer getCommentpid() {
        return commentpid;
    }

    public void setCommentpid(Integer commentpid) {
        this.commentpid = commentpid;
    }

    public Integer getCommenttype() {
        return commenttype;
    }

    public void setCommenttype(Integer commenttype) {
        this.commenttype = commenttype;
    }

    public Integer getCommentre() {
        return commentre;
    }

    public void setCommentre(Integer commentre) {
        this.commentre = commentre;
    }

    @Override
    public String toString() {
        return "Coursecomment{" +
                "commentid=" + commentid +
                ", courseid=" + courseid +
                ", commentcontent=" + commentcontent +
                ", commentscore=" + commentscore +
                ", commentuser=" + commentuser +
                ", commentusertruename=" + commentusertruename +
                ", commenttime=" + commenttime +
                ", commentstate=" + commentstate +
                ", commentisshow=" + commentisshow +
                ", commentdigest=" + commentdigest +
                ", commenttop=" + commenttop +
                ", commentpid=" + commentpid +
                ", commenttype=" + commenttype +
                ", commentre=" + commentre +
                "}";
    }
}
